from celery_tasks.main import app
# from meiduo_mall.libs.yuntongxun.sms import CCP

@app.task(bind=True,name="sms_code")
def send_sms_code(self,mobile,sms_code,time):
    # import time
    # time.sleep(10)
    # try:
    #     ccp = CCP()
    #     result =  ccp.send_template_sms(mobile, [sms_code, time], 1)
    # except Exception as e:
    #     result = -1
    # if result == -1:
    #     print("重试中....")
    #     self.retry(self, exc=Exception("验证码发送失败！") countdown=5, max_retries=3)
    pass